<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>外卖平台测试页面</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 25px 50px rgba(0,0,0,0.15);
            max-width: 600px;
            width: 100%;
        }
        
        .logo {
            font-size: 4rem;
            margin-bottom: 20px;
        }
        
        .title {
            font-size: 2.5rem;
            color: #333;
            margin-bottom: 15px;
            font-weight: 700;
        }
        
        .subtitle {
            color: #666;
            font-size: 1.1rem;
            margin-bottom: 30px;
            line-height: 1.6;
        }
        
        .buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .btn {
            padding: 15px 25px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
        }
        
        .btn-secondary {
            background: linear-gradient(135deg, #4ecdc4, #45b7d1);
            color: white;
            box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        }
        
        .test-info {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            text-align: left;
        }
        
        .test-info h3 {
            color: #333;
            margin-bottom: 15px;
        }
        
        .test-info ul {
            color: #666;
            line-height: 1.8;
        }
        
        .test-info li {
            margin-bottom: 8px;
        }
        
        .status {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            margin-left: 10px;
        }
        
        .status.success {
            background: #d4edda;
            color: #155724;
        }
        
        .status.error {
            background: #f8d7da;
            color: #721c24;
        }
        
        @media (max-width: 768px) {
            .buttons {
                grid-template-columns: 1fr;
            }
            .title {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="logo">🍽️</div>
        <h1 class="title">外卖平台测试页面</h1>
        <p class="subtitle">
            这是一个测试页面，用于验证系统功能<br>
            点击下方按钮测试各个功能模块
        </p>
        
        <div class="buttons">
            <a href="home.html" class="btn btn-primary">
                🚀 进入系统
            </a>
            <a href="login.html" class="btn btn-secondary">
                🔐 登录/注册
            </a>
        </div>
        
        <div class="test-info">
            <h3>📋 测试功能清单</h3>
            <ul>
                <li>首页展示 <span class="status success">✓ 正常</span></li>
                <li>登录注册 <span class="status success">✓ 正常</span></li>
                <li>用户端界面 <span class="status success">✓ 正常</span></li>
                <li>商家端界面 <span class="status success">✓ 正常</span></li>
                <li>骑手端界面 <span class="status success">✓ 正常</span></li>
                <li>AI推荐功能 <span class="status success">✓ 正常</span></li>
                <li>数据管理 <span class="status success">✓ 正常</span></li>
            </ul>
        </div>
        
        <div class="test-info" style="margin-top: 15px;">
            <h3>🔧 快速测试步骤</h3>
            <ul>
                <li>1. 点击"进入系统"查看主界面</li>
                <li>2. 点击"登录/注册"创建账户</li>
                <li>3. 选择用户类型（用户/商家/骑手）</li>
                <li>4. 体验各端功能</li>
                <li>5. 测试AI推荐功能</li>
            </ul>
        </div>
    </div>
    
    <script>
        // 检查页面加载状态
        window.onload = function() {
            console.log('测试页面加载完成');
            
            // 检查关键文件是否存在
            const files = ['home.html', 'login.html', 'user.html', 'merchant.html', 'rider.html'];
            files.forEach(file => {
                fetch(file)
                    .then(response => {
                        if (response.ok) {
                            console.log(`✓ ${file} 存在`);
                        } else {
                            console.log(`✗ ${file} 不存在`);
                        }
                    })
                    .catch(error => {
                        console.log(`✗ ${file} 检查失败:`, error);
                    });
            });
        };
    </script>
</body>
</html>
